package com.pennphoto.shared;

import java.util.Date;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class ProfFieldVerifier {
	
	public static String isValidName(String RA,String title,String room) {
		String error=null;
		if(!room.equals("")){	
	    char[]arr = room.toCharArray();
	    int len=0;
	    for(int i=0;i<arr.length;i++)
	    {
	    	char c1=arr[i];
	    	if(Character.isDigit(c1))
	    		len++;
	    		    	
	    }
	    if(len!=arr.length){
	    	error="The Room Number should contain only digits";
	    }
		}
		//return username.length() > 3;
		return error;
	}

}

